//
//  BaseNavigationViewController.m
//  yunqiphone
//
//  Created by GuFeng on 13-4-7.
//  Copyright (c) 2013年 ci123.com. All rights reserved.
//

#import "BaseNavigationViewController.h"

@interface BaseNavigationViewController ()

@end

@implementation BaseNavigationViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.navigationBarHidden = YES;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    
}

- (BOOL)shouldAutorotate
{
    return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
    return self.topViewController.supportedInterfaceOrientations;
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [self.tabBarController setHidesBottomBarWhenPushed:YES];
    
    [super pushViewController:viewController animated:animated];
}

@end
